package gameEngine;

import gameBasicElements.Board;
import gameBasicElements.PlayerColor;
import gameBasicElements.ScoreBoard;
import gameEngine.Game.ActualGame;

/**
 * @author Igor Adamski
 *
 */
public class LocalGameInfo implements GameInfo {

	private ActualGame game;
	public LocalGameInfo(ActualGame game) {
		this.game = game;
	}
	@Override
	public Board getCurrentBoard() {
		return game.getCurrentBoard();
	}

	@Override
	public PlayerColor getCurrentPlayer() {
		return game.getCurrentPlayer();
	}

	@Override
	public int getTimeLeft(PlayerColor color) {
		return game.getTimeLeft(color);
	}

	@Override
	public String lastMoveError() {
		return game.getLastMoveError();
	}
	@Override
	public boolean gameFinished() {
		return game.gameFinished();
	}
	@Override
	public boolean gameStarted() {
		return game.gameStarted();
	}
	@Override
	public GameStatus getGameStatus() {
		return game.getGameStatus();
	}
	@Override
	public ScoreBoard getFinalScores() {
		return game.getFinalScores();
	}
}
